package sfy.md.structure.proxy;

import org.omg.Messaging.SYNC_WITH_TRANSPORT;

public class PeopleProxy implements PeopleManager{

    People people = new People();

    @Override
    public void sleep() {
        System.out.println("代理的睡觉执行了");
       people.sleep();
    }

    @Override
    public void run() {
        System.out.println("代理的跑执行了");
        people.run();
    }
}
